package com.ecmwidgets.test;

public class Auto {

//	public static final String FVT_MAIN_WIDGETS= "D:\\ws2\\Installer_REST\\src\\com\\ecmwidgets\\test\\FVT_Main.xml";
	public static final String FVT_MAIN_PUT1 = "D:\\ws2\\Installer_REST\\src\\com\\ecmwidgets\\test\\FVT_Main_put1.xml";
	public static final String FVT_MAIN_PUT2 = "D:\\ws2\\Installer_REST\\src\\com\\ecmwidgets\\test\\FVT_Main_put2.xml";
	public static final String FVT_MAIN_PUT3 = "D:\\ws2\\Installer_REST\\src\\com\\ecmwidgets\\test\\FVT_Main_put3.xml";
	
	public static final String SPACE_AUTOMATION = "Automation";
	public static final String SPACE_AUTOMATIONSTEP = "AutoStep";
	
	public static final String PAGE_FVT_MAIN = "FVT_Main";
	public static final String PAGE_FVT_CONTENTLIST = "FVT_ContentList";
	public static final String PAGE_CASE_MAIN = "CASE_Main";
	public static final String PAGE_CASE_STEP = "CASE_Step";
	
	public static final String PAGE_FVT_STEP = "FVT_Step";
	
	
	public static void main(String[] args) throws Exception {
		
		String hostname = "9.181.141.82";
		String port = "9443";
		String uid = "administrator";
		String pwd = "jessica";
//		System.out.println(isSpaceExist("9.181.141.82","9443","intgpeadmin","tester"));
//		System.out.println(isSpaceExist("9.181.141.82","9443","administrator","jessica"));
//		System.out.println(getSpaceIDByName(hostname,port,uid,pwd,"Test"));
		
//		System.out.println(getTemplateIDByName(hostname,port,uid,pwd,BLANK_TEMPLATE));
		String spaceAutomationID = RESTClient.createSpace(hostname,port,uid,pwd,SPACE_AUTOMATION);
//		String spaceAutoStepID = RESTClient.createSpace(hostname,port,uid,pwd,SPACE_AUTOMATIONSTEP);
		
//		deleteSpaceByID("9.181.141.82","9443","administrator","jessica",id);
//		deleteSpaceByName("9.181.141.82","9443","administrator","jessica","a6");
//		listPage(hostname,port,uid,pwd);
		
		String page1ID = RESTClient.createPage(hostname,port,uid,pwd,SPACE_AUTOMATION,PAGE_FVT_MAIN,FVT_MAIN_PUT1,FVT_MAIN_PUT2,FVT_MAIN_PUT3);
//		RESTClient.setPageLayout(hostname,port,uid,pwd,page1ID,FVT_MAIN_LAYOUT);
//		RESTClient.addWidget(hostname,port,uid,pwd,page1ID,FVT_MAIN_WIDGETS);
		
	}

}
